package cn.gailvlun.gll.util;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;

import com.blankj.utilcode.util.ImageUtils;


public class ImageUtil {
    public static int[] getImageWidthHeight(String path){
        BitmapFactory.Options options = new BitmapFactory.Options();

        options.inJustDecodeBounds = true;
        Bitmap bitmap = BitmapFactory.decodeFile(path, options);

        if (bitmap == null) {
            LogUtil.d("无法获取长和宽");
        }
        
        return new int[]{options.outWidth,options.outHeight};
    }
}
